package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.model.bean.TrainingRecordResponse

/**
 * @Author      : hxw
 * @Date        : 2023/2/16 15:38
 * @Describe    :
 */
class TrainingRecordPigeonAdapter(data: ArrayList<TrainingRecordResponse.InfoList>) :
    BaseQuickAdapter<TrainingRecordResponse.InfoList, BaseViewHolder>(R.layout.item_training_record, data) {

    override fun convert(holder: BaseViewHolder, item: TrainingRecordResponse.InfoList) {
        holder.setText(R.id.tv_item_training_record_rank, "第" + item.rank + "名")
        holder.setText(R.id.tv_item_training_record_ring_id, item.ringId)
        holder.setText(R.id.tv_item_training_record_time, item.timing)
        holder.setText(R.id.tv_item_training_record_address, item.addr)
    }
}